package com.bite.lesson2;

import java.util.Scanner;

public class Demo_03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int cut = scanner.nextInt();
            Printf(cut);
        }
    }

    private static void Printf(int cut) {
        for (int i = 0; i < cut; i++) {
            for (int j = 0; j < cut; j++) {
                if (i == j || i + j == cut - 1) {
                    System.out.print("*");
                } else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }
}
